package com.ruoyi.business.mapper;

import com.ruoyi.bizsys.domain.CreditAccount;
import com.ruoyi.bizsys.domain.IncreasedLimitLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author
 */
@Mapper
public interface BCreditAccountMapper {

    /**
     * 根据客户id查找授信
     * @param custNos 多个逗号分隔
     * @return
     */
    public List<CreditAccount> findInCustNos(String custNos);

    /**
     * 批量更新当前额度
     * @param list
     */
    public void updateCreditLineBatch(List<CreditAccount> list);

    /**
     * 批量插入提额名单日志
     * @param illList
     */
    public int insertIncreasedLimitLogBatch(List<IncreasedLimitLog> illList);

    void updateCreditAccount(CreditAccount creditAccount);
}
